import Router from 'koa-router';
import toolsControlle from "../controller/toolsControlle";

const router = new Router();

router.prefix('/api/tools');

router
    /**
     * @swagger
     * /api/tools/getJieba:
     *   get: 
     *     description: 标题拆词 
     *     tags: [工具] 
     *     summary: "标题拆词"
     *     parameters:
     *       - name: title
     *         in: query
     *         description: 标题文本
     *         required: true
     *     produces: 
     *       - application/json 
     *     responses: 
     *       200:
     *         description: 获取数据列表 
     * */
  .get('/getJieba', toolsControlle.getJieba)
  /**
     * @swagger
     * /api/tools/ossSts:
     *   get: 
     *     description: 获取临时key 
     *     tags: [工具] 
     *     summary: "获取临时key"
     *     parameters:
     *     produces: 
     *       - application/json 
     *     responses: 
     *       200:
     *         description: 获取数据列表 
     * */
  .get('/ossSts', toolsControlle.ossSts)
    /**
     * @swagger
     * /api/tools/resetShopOrder:
     *   get: 
     *     description: 批量设置代理订单信息 
     *     tags: [工具] 
     *     summary: "批量设置代理订单信息"
     *     parameters:
     *     produces: 
     *       - application/json 
     *     responses: 
     *       200:
     *         description: 获取数据列表 
     * */
  .get('/resetShopOrder', toolsControlle.resetShopOrder)
  /**
     * @swagger
     * /api/tools/nlpParticiple:
     *   get: 
     *     description: 阿里云NLP拆词工具 
     *     tags: [工具] 
     *     summary: "阿里云NLP拆词工具"
     *     parameters:
     *     produces: 
     *       - application/json 
     *     responses: 
     *       200:
     *         description: 获取数据列表 
     * */
  .get('/nlpParticiple', toolsControlle.nlpParticiple )
    /**
     * @swagger
     * /api/tools/statisticsDowAppNum:
     *   get: 
     *     description: 统计浏览器下载次数 
     *     tags: [工具] 
     *     summary: "统计浏览器下载次数"
     *     parameters:
     *     produces: 
     *       - application/json 
     *     responses: 
     *       200:
     *         description: 获取数据列表 
     * */
    .get('/statisticsDowAppNum', toolsControlle.statisticsDowAppNum )

      /**
     * @swagger
     * /api/tools/savePageCI:
     *   get: 
     *     description: 保存页面的cookie 
     *     tags: [工具] 
     *     summary: "统计浏览器下载次数"
     *     parameters:
     *     produces: 
     *       - application/json 
     *     responses: 
     *       200:
     *         description: 获取数据列表 
     * */
      .post('/savePageCI', toolsControlle.savePageCI )

       /**
     * @swagger
     * /api/tools/statisticsJupAotoTkNum:
     *   get: 
     *     description: 统计浏览器点击自动排单跳转次数 
     *     tags: [工具] 
     *     summary: "统计浏览器点击自动排单跳转次数"
     *     parameters:
     *     produces: 
     *       - application/json 
     *     responses: 
     *       200:
     *         description: 获取数据列表 
     * */
    .get('/statisticsJupAotoTkNum', toolsControlle.statisticsJupAotoTkNum )

     /**
     * @swagger
     * /api/tools/savePlginOssPath:
     *   post: 
     *     description: 保存脚本地址 
     *     tags: [工具] 
     *     summary: "保存脚本地址"
     *     parameters:
     *     produces: 
     *       - application/json 
     *     responses: 
     *       200:
     *         description: 获取数据列表 
     * */
     .post('/savePlginOssPath', toolsControlle.savePlginOssPath )

      /**
     * @swagger
     * /api/tools/getPlginOssPath:
     *   get: 
     *     description: 获取脚本地址 
     *     tags: [工具] 
     *     summary: "获取脚本地址"
     *     parameters:
     *     produces: 
     *       - application/json 
     *     responses: 
     *       200:
     *         description: 获取数据列表 
     * */
      .get('/getPlginOssPath', toolsControlle.getPlginOssPath )


 

export default router;